.dialog-content {
  display: flex;
  flex-direction: row;
  height: 800px;
}

.dialog-left {
  width: 30%;
  border-right: 1px solid #ebeef5;
  padding: 20px;
}

.dialog-right {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  max-height: 700px;
  overflow-y: auto;
  /* max-width: 508px; */
}

.block {
  margin-bottom: 20px;
}

.block .title {
  font-weight: bold;
  margin-bottom: 10px;
}

.button-group-father {
  width: 100%;
}

.button-group {
  /* display: flex; */
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.button-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 10px 0;
}

.flex-button {
  flex: 1;
  margin: 0 5px;
  border-radius: 10px;
  height: 40px;
  padding: 0;
}

.full-width-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.full-width-button {
  flex: 1;
  margin: 0 5px;
  border-radius: 10px;
  height: 40px;
  padding: 0;
}

.question-list {
  flex-grow: 1;
  overflow-y: auto;
}

.question-item {
  border: 1px solid #ebeef5;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap; /* 允许换行 */
}

.question-type-difficulty {
  display: flex;
  gap: 5px;
  flex-shrink: 0; /* 防止 el-tag 缩小 */
}

.knowledge-point {
  flex-grow: 1; /* 允许 knowledge-point 占据剩余空间 */
  word-wrap: break-word; /* 允许换行 */
}

.dialog-footer-area {
  padding: 20px;
  border-top: 1px solid #ebeef5;
  display: flex;
  justify-content: space-between;
}

.bottom-button {
  display: flex;
  gap: 10px;
}

.correct-answer {
  color: #2b7a4b;  /* 深绿色 */
  font-weight: bold;
  background-color: #f0f9f0;  /* 浅绿色背景，增加可读性 */
  /* padding: 2px 6px; */
  border-radius: 4px;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 150px;
  position: absolute;
  top: 40%;
  left: 35%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  pointer-events: none;
}

.loading .el-loading-spinner {
  position: static;
  margin: 0;
  width: 24px;
  height: 24px;
}

.loading .el-loading-spinner .circular {
  width: 24px;
  height: 24px;
}

.components_Master_Master .title {
  height: auto !important;
  line-height: 30px !important;
  flex: 1 !important;
  text-align: center !important;
  text-align: left !important;
  /* 修改为靠左显示 */
}


.el-textarea__inner {
  display: block;
  resize: vertical;
  padding: 5px 15px;
  line-height: 1.5;
  box-sizing: border-box;
  width: 100%;
  font-size: inherit;
  color: #606266;
  background-color: #FFF;
  border: 1px solid #DCDFE6;
  border-radius: 4px;
  transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  height: 160px;
}

.block .el-textarea__inner {
  font-size: 12px; /* 修改多行文本框字体大小 */
}

.question-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-input {
  margin-bottom: 10px;
}

/* .el-dialog__body {
  padding: 30px;
} */

.dialog-right.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 999;
}

.el-form-item {
  margin-bottom: 22px;
}

.el-form-item__label {
  padding-right: 15px;
}

.el-form-item__content {
  margin-left: 20px;
}

.option-input {
  margin-bottom: 15px;
}

.el-dialog__footer {
  padding: 20px 50px;
  border-top: 1px solid #ebeef5;
  background-color: #f8f9fb;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: flex-end;
}

/* 重置底部按钮区域内的表单项样式 */
.el-dialog__footer .el-form-item {
  margin: 0 !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

/* 底部按钮容器 */
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* 底部按钮样式 */
.el-dialog__footer .el-button {
  padding: 9px 20px;
  font-size: 14px;
  border-radius: 4px;
}

.el-dialog__footer .el-button + .el-button {
  margin-left: 12px;
}

/* 确保表单项在底部区域不会影响按钮布局 */
.el-dialog__footer .el-form-item__content {
  margin-left: 0 !important;
  display: flex;
  justify-content: flex-end;
}

/* 调整编辑弹窗的宽度和样式 */
.el-dialog {
  width: 800px !important;  /* 强制设置宽度 */
  margin: 0 auto !important;
  border-radius: 8px;
}

.el-dialog__header {
  padding: 20px 30px;
  border-bottom: 1px solid #ebeef5;
  background-color: #f8f9fb;
  border-radius: 8px 8px 0 0;
}

.el-dialog__title {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}

/* .el-dialog__body {

} */
.components_TopicDialog_TopicDialog .el-dialog__body {
  /* 你的样式 */
  /* padding: 30px 50px; */
  padding: 0px 0px 0px 0px !important;
  max-height: 90vh;
  overflow-y: auto;
}

/* 表单项样式 */
.el-dialog .el-form-item {
  margin-top: 20px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;  /* 改为纵向排列 */
  align-items: flex-start;  /* 左对齐 */
}

.el-dialog .el-form-item__label {
  text-align: left;  /* 标签左对齐 */
  padding: 0 0 8px 0;  /* 调整标签下方间距 */
  line-height: 20px;
  color: #606266;
  font-weight: 500;
  margin-left: 20px;
}

.el-dialog .el-form-item__content {
  margin-left: 20px  /* 移除左边距 */
  
}

/* 输入框和选择框的宽度 */
.el-dialog .el-form-item__content .el-input,
.el-dialog .el-form-item__content .el-textarea {
  width: 650px !important;
}

.el-dialog .el-form-item__content .el-select {
  width: 750px !important;
}

/* 输入框样式 */
.el-input__inner,
.el-textarea__inner {
  border-radius: 4px;
  border-color: #dcdfe6;
  padding: 8px 12px;
}

.el-input__inner:focus,
.el-textarea__inner:focus {
  border-color: #409eff;
}

/* 选项输入框样式 */
.option-input {
  margin-bottom: 15px;
  padding: 0;
}

.option-input .el-input {
  width: 100%;
}

/* 选择器样式 */
.el-select {
  width: 100%;
}

/* 文本域样式 */
.el-textarea__inner {
  min-height: 180px !important;
  line-height: 1.5;
  font-size: 14px;
}

/* 单选和多选框组样式 */
.el-radio-group,
.el-checkbox-group {
  display: flex;
  gap: 20px;
}

/* 下拉选择框样式 */
.el-select .el-input__inner {
  height: 36px;
  line-height: 36px;
}

/* 必填项星号样式 */
.el-form-item.is-required .el-form-item__label:before {
  color: #f56c6c;
}

/* 编辑弹窗中的输入框和选择框宽度 */
.el-dialog .el-form-item__content .el-input {
  width: 750px !important;
}

.el-dialog .el-form-item__content .el-textarea {
  width: 750px !important;
}



/* 选项输入框保持原有宽度 */
.option-input .el-input {
  width: 100% !important;
}

/* 确保文本域的宽度也是650px */
.el-dialog .el-form-item__content .el-textarea .el-textarea__inner {
  width: 750px !important;
}

.dialog-Edit-footer {
  display: flex;
  justify-content: flex-end;
  margin-right: 20px;
}
.dialog-main-content {
  display: flex;
  flex-direction: column;
  /* 垂直排列右侧内容区域和底部按钮区域 */
  flex: 1;
}